package com.tiantianyuegou.adapter;

import android.content.Context;
import android.widget.TextView;

import com.trouble.framework.adapter.BaseAdapterHelper;
import com.trouble.framework.adapter.QuickAdapter;
import com.tiantianyuegou.R;
import com.tiantianyuegou.model.TaxModel;

import java.util.List;

/**
 * Created by ivany on 2016/1/20.
 */
public class TaxAdapter extends QuickAdapter<TaxModel> {


    public TaxAdapter(Context context) {
        super(context, R.layout.item_tax_list);
    }

    public void setData(List<TaxModel> datas) {
        data.clear();
        data.addAll(datas);
    }

    @Override
    protected void convert(BaseAdapterHelper baseAdapterHelper, TaxModel taxModel) {
        TextView mTxt_label = baseAdapterHelper.getView(R.id.item_tax_list);
        mTxt_label.setText(taxModel.getLabel());
    }
}
